import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:xvideos/hj_page/cartoon_business/cartoon_sub_module_page.dart';

import '../../cartoon_business/cartoon_sub_module_logic.dart';
import '../community/community_module_logic.dart';

class CommunityMainLogic extends GetxController with GetTickerProviderStateMixin {

  final int index;

  CommunityMainLogic({this.index = 0});

  List<String> tabs = ['社区', '图集', '黄游', '小说'];

  late TabController tabCtr;


  @override
  void onInit() {
    tabCtr = TabController(length: tabs.length, vsync: this, initialIndex: index);
    super.onInit();
  }

  // 跳转相关模块的亚模块
  void jumpSubModule(int index, {int tabIndex = 0}) {
    tabCtr.index = index;
  }

}
